info: Fix JavaScript to support older versions of CiviCRM and jQuery.