Enforced HTTPS on Sample Pages using Javascript