Modifying document.location.protocol

Hopefully fixing URL issue