Change javascript to call https instead of http