fix cordova 3.0
Merge pull request #8 from ilbonzo/develop

fix cordova 3.0