fix ASM_JS function pointer bug