new JS file for survey-edit