Ticket #1870: Fixing error on drupal_add_js