changed name of javascript cordova file. removed alert form onError function.