Merge pull request #1582 from edwinb/partial-eval

Partial evaluation
javascript: fix ffiWrap for zero argument functions
Merge pull request #1583 from raichoo/master

javascript: fix ffiWrap for zero argument functions
javascript: fix for #1580
Merge pull request #1584 from raichoo/master

javascript: fix for #1580