Fixed issues in IE8 by using the clipboard directly

I was having issues with copying in IE8, I added a change to use the
clipboardData object if it's available. And use the the workaround if
not.