Generate question types from JQuery