Remove trailing commas that can cause problems for IE