using platform detector in cordova.js. cordova.android.js or cordova.ios.js will be chosen automatically