Added Generator.prototype.copyToClipboard

Tracked in #269