javascript edits to add option and add question