     func labelFor(element:String, completion: ((String) -> Void)) {
         let js = "var answer; var mem = document.getElementById('\(element)'); if (mem) { answer = mem.parentElement.children[0].textContent }; mem && answer || 'null'"
         
-        run(js) { (result) in
+        run(js) { result in
             if result != "null" {
                 println("read label \(result)")
                 completion(result)

    }

    func fillIn(field:String, with:String, completion: ((String) -> Void)) {
        println("fill in value")
        run("document.getElementById('\(field)').value = \"\(with)\";") { (result) in
            completion(result)
        }
    }

    func click(field:String, completion: ((String) -> Void)) {
        println("click")
        run("document.getElementById('\(field)').click();") { (result) in
            completion(result)
            

    }
    
    func run(string:String, completion: ((String) -> Void)) {
        self.webview.evaluateJavaScript(string, completionHandler: { result, error in
            if (error != nil) {
                println("there was an error running javascript:")
                println(string)
