Fix cut & paste support for Firefox & IE

This has been tested with IE, chrome & FF on Windows.