trying to create a jquery plugin for cordova