implemented cordova.js though still need to check my requires