Updated to Cordova 3.0 and another changes

* Updated java files to Cordova 3.0
* Updated the javascript file: now is compatible with browsers when an application is for phonegap and for desktop browsers.