Fixes for Cordova 3.0
Merge pull request #26 from GermanDZ/master

Fixes for Cordova 3.0