took out console.log(ajax) test
made method to abstract out question and answer in server.rb