Rails note app with ajax