added check for trailing comma

highlight problems for ie quirk mode