Revert "Modifying document.location.protocol"

This reverts commit 82027de748cff66660f782172afa1b76cc5678b4.