Add test case for javascript