Refactoring the gmapjs.html