Internet Explorer does not support addEventListener, so using attachEvent instead for it in cosmetics.js