added javascript of adding questions