fixed window.event issue for Firefox