updating for use with cordova