Fix problems when accessing over https.

The browser prevents access to http javascripts from https.