a plugin for cordova/phonegap