Java Script error in IE10