Do not assume we're loaded over HTTP.

If we're loaded over HTTPS, then most browsers will disallow loading
Javascript over HTTP.
Merge pull request #27 from alexbrasetvik/https-support

Do not assume we're loaded over HTTP.