[js] add test case for exception within function arguments
[js] add function arguments parsing error assertion test
[js] test var parsing
[js] test function arguments parsing