Fix the CopyToClipboard javascript method

The current url used contained the root where the application is deployed while this is
also present in the 'text', so using the host_url avoid having twice the root present.

Fixes https://fedorahosted.org/fedocal/ticket/84