Removed commas after last item in object

Older IEs have issues with this for some reason.
Merge pull request #2997 from dominic-p/master

Remove comma after last item in object