asmjs type error