Remove use of 'const' in js to allow plugin to be 'browserify'ed (cordova --browserify). Being part of ES6 and not supported by all browser, this fails to parse with some libraries; in the case of cordova's browserify process an error is generated:
Remove use of 'const' in js to allow plugin to be 'browserify'ed (cordova --browserify). Being part of ES6 and not supported by all browser, this fails to parse with some libraries; in the case of cordova's browserify process an error is generated:

SyntaxError: Unexpected token (2476:6) (while aliasify was processing <project>/plugins/plugin.google.maps/www/googlemaps-cdv-plugin.js) while parsing file: <project>/plugins/plugin.google.maps/www/googlemaps-cdv-plugin.js

This error comes from the acorn library (dependency of the aliasify module): node_modules/cordova/node_modules/cordova-lib/node_modules/aliasify/node_modules/browserify-transform-tools/node_modules/falafel/node_modules/acorn

blanedaze/phonegap-googlemaps-plugin,joewoodhouse/phonegap-googlemaps-plugin,EmilianStankov/cordova-plugin-googlemaps,hungdoan2/phonegap-googlemaps-plugin,smcpjames/cordova-plugin-googlemaps,pinkbike/phonegap-googlemaps-plugin,cabify/cordova-plugin-googlemaps,rynomster/cordova-plugin-googlemaps,denisbabineau/cordova-plugin-googlemaps,rynomster/cordova-plugin-googlemaps,smcpjames/cordova-plugin-googlemaps,athiradandira/phonegap-googlemaps-plugin,denisbabineau/phonegap-googlemaps-plugin,blanedaze/phonegap-googlemaps-plugin,dukhanov/cordova-plugin-googlemaps,denisbabineau/cordova-plugin-googlemaps,hungdoan2/phonegap-googlemaps-plugin,cabify/cordova-plugin-googlemaps,LouisMazel/cordova-plugin-googlemaps,rynomster/cordova-plugin-googlemaps,mapsplugin/cordova-plugin-googlemaps,denisbabineau/phonegap-googlemaps-plugin,athiradandira/phonegap-googlemaps-plugin,pinkbike/phonegap-googlemaps-plugin,quiuquio/cordova-plugin-googlemaps,athiradandira/phonegap-googlemaps-plugin,quiuquio/cordova-plugin-googlemaps,hungdoan2/phonegap-googlemaps-plugin,mapsplugin/cordova-plugin-googlemaps,wf9a5m75/phonegap-googlemaps-plugin,LouisMazel/cordova-plugin-googlemaps,blanedaze/phonegap-googlemaps-plugin,wf9a5m75/phonegap-googlemaps-plugin,dukhanov/cordova-plugin-googlemaps,mapsplugin/cordova-plugin-googlemaps,hungdoan2/phonegap-googlemaps-plugin,wf9a5m75/phonegap-googlemaps-plugin,alexislg2/phonegap-googlemaps-plugin,denisbabineau/cordova-plugin-googlemaps,athiradandira/phonegap-googlemaps-plugin,quiuquio/cordova-plugin-googlemaps,EmilianStankov/cordova-plugin-googlemaps,cabify/cordova-plugin-googlemaps,smcpjames/cordova-plugin-googlemaps,alexislg2/phonegap-googlemaps-plugin,joewoodhouse/phonegap-googlemaps-plugin,alexislg2/phonegap-googlemaps-plugin,LouisMazel/cordova-plugin-googlemaps,EmilianStankov/cordova-plugin-googlemaps,denisbabineau/phonegap-googlemaps-plugin,pinkbike/phonegap-googlemaps-plugin,joewoodhouse/phonegap-googlemaps-plugin,dukhanov/cordova-plugin-googlemaps