Creating persistence for daily notes using rails UJS and Jquery