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

might avoid a loading bug when truly hosted on a webserver.