support for Runtime.addFunction in asm.js