added js methods for adding questions and voting