* Do HTTPS redirection at JS level.