Makes the javascript fully https ready.

Closes #50, @konklone is this all that was left for #50?