Compatibility with all phonegap versions

The new script works with every phonegap version
Compatibility with phonegap 2.0 (Cordova)

Now the plugin works with Phonegap 2.0+
Merge pull request #1000 from aetchegoyen/master

Compatibility with phonegap 2.0 (js and java) (Cordova) and previuos versions (in JS file)