update JS interface to use CommonJS convention
it's cordova now, not cordovaRef
Merge pull request #2 from noisysocks/master

Fix plugin when installed via cordova command line