create questionnaire by javascript