Fixed javascript error causing IE9 to break.