begin work on js for survey