Add test for javascript response