However, one important oddity is in how IE8 and modern browsers handle arrays.
For example, when listing many items in an array it is common (and can avoid future headaches when modifying code) to write the below: Note the final comma after the last element.
var array = ["item one",
What you end up with in IE8 is the following:
["item one", "item two", "item three", WINDOW OBJECT]
For some reason IE8 throws a window object in the mix when you leave the extra comma in the list. Remove the final comma and IE8 will behave as it is supposed to.