Shorter and faster code for IE8.