Make JavaScript more browser compatible

The JS parser in IE8 and previous does not correctly parse object
and array literals with trailing commas.