Fix code that break in IE

Trailing comma was not removed properly