IE javascript error corrections