fixes in gmaps.js
copy some fixes from master