https support

fix js includes to work even if the site is served over https
Merge pull request #3 from ccnmtl/https-cleanup

https support