move js to bottom to speedup loading time.
make script urls protocol relative.

might avoid a loading bug when truly hosted on a webserver.
Merge pull request #1 from originell/master

Try to fix not working on a true webserver