Refactored JavaScriptEngine & WebView interface