add hacky solution to fix the addJavascriptInterface race conditoin