The code as posted is full of illegal line breaks, and so won't run anywhere.
Once formatted you'll see that the IE error console indicates 'object doesn't support this action'.
It soon becomes clear that it doesn't like the reference to item, which in I.E. is a global object. Call it something else.