As for your code do you have a trailing comma in your code??
this guy explains the issue in more detail :) cba to re-invent the wheel lol
No. IE incorrectly interprets a single trailing comma as an elision and adds one to the length when it shouldn't (ECMA-262 sect. 11.1.4).
hope this helps :)