add test case for js
add test case for js