Adding notes for a single page app with a rails backend