Fix browser events for IE