update remotestorage.js to master+#509