JavaScript client-side persistence based on copy-paste