Remove trailing comma in JS object literal

For compatability with IE <= 8. cf http://www.2ality.com/2013/07/trailing-commas.html