removed trailing comma in js