trailing commas fix

IE8 (and below) will parse trailing commas in array and object literals incorrectly
Merge pull request #316 from avances123/patch-1

trailing commas fix