Fix IE9 JS error c00c023f

See http://stackoverflow.com/questions/7287706/ie-9-javascript-error-c00c023f