Android: UGLY HACK to init JNIEnv in JS thread.