Make copy plugin compatible with older jquery