Copy-Paste utility for JavaScript using localStorage or remote server