fix bug with adding non-functions to libraryFunctions in ASM_JS