fix hardcoded https

using  window.location.protocol to determine if the page opened is using
http or https then redirect correctly to the lookup domain/ip page