Test for javascript request