Todo App with rails backend (API) and MVC Javascript