Drupal basepath is now added to the javascript for the browser popup window.

Closes #1