Removes trailing commas. Fixes IE9 support.