added copy to clipboard button and javascripts

It seems like a horrible hack but apparently its the standard now, seems to be library github use.