One cause of error at least.
Watch for stray commas at the end of an array.
For example :
var array = [ 'zero', 'one', 'two', 'three', 'four', ];
That comma after ‘four’ will be silent in most browsers. In Internet Explorer (lower than 8 at least), this will throw an error.