Removed trailing commas in JavaScript objects

IE8 doesn't like trailing commas in JavaScript Object and Array literals. It's safer to omit them.