Using Rails and AJAX to make a stack overflow clone