fix JS bug on IE