Changes the window.location.protocol in the JS files with base_url