Use window.location.protocol to determine URL (Google, Bing, ArcGISCache)