Fixed issue with warning thrown by Cordova for iOS. writeJavascript is deprecated in Cordova 4.0.0