remove trailing comma which causes issues with IE8