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