Add json test for javascript