fixed IE8 javascript error