map.js: load google scripts only when switching to google layers