index cordova js delete