         var stepResult = KIFTestStepResult.Wait
 
         let escaped = text.stringByReplacingOccurrencesOfString("\"", withString: "\\\"")
-        webView.evaluateJavaScript("KIFHelper.enterTextIntoInputWithName(\"\(escaped)\", \"\(inputName)\");") { success, _ in
-            stepResult = (success as! Bool) ? KIFTestStepResult.Success : KIFTestStepResult.Failure
-        }
+        let js = "KIFHelper.enterTextIntoInputWithName(\"\(escaped)\", \"\(inputName)\");"
+        stepResult = jsRespondsOK(webView, js: js) ?  KIFTestStepResult.Success : KIFTestStepResult.Failure
 
         runBlock { error in
             if stepResult == KIFTestStepResult.Failure {

            }
            return stepResult
        }
    }

    /**


        var stepResult = KIFTestStepResult.Wait

        let _result = webView.stringByEvaluatingJavaScriptFromString("typeof KIFHelper")
        if let result = _result where result == "undefined" {
            let bundle = NSBundle(forClass: NavigationTests.self)
            let path = bundle.pathForResource("KIFHelper", ofType: "js")!
            let source = try! NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding)
            webView.stringByEvaluatingJavaScriptFromString(source as String)
        }
        stepResult = KIFTestStepResult.Success


        runBlock { _ in return stepResult }

