javascript error in IE fixed