cleaned up and added clearer comments to gmap implementation in helper.js