Removes unnecessary trailing commas which stops google's closure compiler.