Removed trailing commas in JavaScript objects