Fixed the copy to clipboard functionality

Fixed the copyToClipboard function by using a dynamically generated
<textarea>.

Also added the correct permissions to the manifest file.

Commented some of the code (will be properly done when I clean this all
up near the end)