Pure Javascript Copy and Paste