Fixed javascript in IE