Make it work under window.plugins

require throw errors in Cordova -v = 3.4.0-0.1.3. Cordova.exec is already available. Add the plugin under window.plugins object.