Bug fixes for IE8/9/10 (please don't use IE < 8, it won't work. Besides, it really sucks)