Fixed IE issue with javascript in site form.