A Javascript api for my rails ListApp