Little cordova javascript class for easy use in cordova apps