js core for cordova apps