use location.protocol