Compatibility with phonegap 2.0 (Cordova)

The change made gets the plugin working with phonegap 2.0
Merge pull request #987 from aetchegoyen/patch-1

Compatibility with phonegap 2.0 (Cordova)