[js] create proper one-argument closure for Array.push (closes #1997)
Merge pull request #3209 from nadako/1997_array_push_closure

[js] create proper closure for Array.push (closes #1997)