following along with http://rny.io/rails/react/2014/07/31/reactjs-and-rails.html