Hugely simplified copy function in zeroclipboard