Fixes trailing comma in JS file