Add test for javascript