Enforced HTTPS for All  Pages using Javascript