add cordova support
Merge pull request #1 from nolanlawson/add-cordova

add cordova support