added Drupal's basepath to javascript post