Configure ZeroClipboard to correctly dispatch events while using AMD