removed 'window.event = e' which causes an error in strict mode (IE)