Fix to use clipboard directly if available

The original change for using the clipboard directly seems to be completely invalid JavaScript. Tested this change on IE 8 and newer.