update for cordova 3.4
Merge pull request #26 from voltek62/patch-1

Fix issue with Cordova 3.4 compatibility