js variable scope fix
Generate json from questionnaire form
uploading and storing of questionnaire