put try-catch around load_js_runtime