js for survey