updates for ie8

This should be `document.detachEvent('onclick', handler)` using `onclick` instead of `click`.