javascript: fix ffiWrap for zero argument functions