Fixed onResume freeze issue

Cordova is execute the "stringByEvaluatingJavaScriptFromString" method
before the webview can load resulting in app freezing. Using the
window.setTimeout function, we can ensure that the app has sufficient
time to load