now works with cordova 2.5
Merge pull request #7 from pamepros/master

now works with cordova 2.5