create separate js file for create survey