make some base function to createSurvey.js and make some html to createSurvey.php