[renderjson.js] Fix last comma removal logic.
[renderjson.js] Remove last comma on objects, just like arrays.

This assumes the iteration order of "for (k in json)" remains constant. I
can't remember if this is a good assumption or not.