Forcing SSL via JavaScript