 		let config = WKWebViewConfiguration()
 		let controller = WKUserContentController()
 		config.userContentController = controller
-		controller.addScriptMessageHandler(self, name: "interOp")
-		controller.addScriptMessageHandler(self, name: "linkSelected")
-		controller.addScriptMessageHandler(self, name: "changeUrlVal")
+		controller.addScriptMessageHandler(self, name: "jsBridge")
         self.webView = WKWebView(frame: self.view.bounds, configuration: config)
 		self.webView?.navigationDelegate = self;
         self.view.addSubview(self.webView!)

			let url = message.body as! String
				// TODO: Naira
		}
	}

	private func layoutSearchEngineScrollView() {

		animateSearchEnginesWithKeyboard(state)
	}

	private func handleJSMessage(action: String, data: NSDictionary?, callback: String?) {
		switch action {
			case "searchHistory":
				var jsonStr: NSString = ""
				do {
					let json = try NSJSONSerialization.dataWithJSONObject(self.historyResults, options: NSJSONWritingOptions(rawValue: 0))
					jsonStr = NSString(data:json, encoding: NSUTF8StringEncoding)!
				} catch let error as NSError {
					print("Json conversion is failed with error: \(error)")
				}
				if let c = callback {
					let exec = "\(callback)(\(jsonStr))"
				self.webView!.evaluateJavaScript(exec, completionHandler: nil)
			}
			case "openLink":
				if let url = data["url"] as? String {
					delegate?.searchView(self, didSelectUrl: NSURL(string: url)!)
				}
			case "":
			default
				print("Unhandles JS action: \(action)")
		}
	}
}
