Making the paste operation work on older browsers.