Make google maps javascript protocol independent