removed trailing commas in JS because they make IE8 barf