             } else {
                 print("ERROR: selectionVerseStart returns non-string \(String(describing: data))")
             }
-            
         })
     }
     

    }
    
    private func selectionVerseStart() {
        let query = "function selectionVerseStart() {\n"
            + "  var clas = '';\n"
            + "  var select = window.getSelection();\n"
            + "  if (select != null) {\n"
            + "    var range = select.getRangeAt(0);\n"
            + "    var startNode = range.startContainer;\n"
            + "    if (startNode.nodeType != 1) {\n"
            + "      startNode = startNode.parentElement;\n"
            + "    }\n"
            + "    clas = startNode.className;\n"
            + "  }\n"
            + "  return(clas);\n"
            + "} selectionVerseStart();"
        print(query)
        self.evaluateJavaScript(query, completionHandler: { data, error in
            if let err = error {
                print("ERROR: selectionVerseStart \(err)")

        let commands = "var node = document.getElementsByClassName('verse\(verse)')[0];\n"
            + "var item = document.createElement('p');\n"
            + "item.innerHTML = 'WOWEE';\n"
            + "var result = node.parentElement.insertBefore(item, node);\n"
        print(commands)
        self.evaluateJavaScript(commands, completionHandler: { data, error in
            if let err = error {
                print("ERROR: insertBookmark \(err)")
            }
        })
    }
}
