Fix JSHint complaints about extra commas (and there was me trying to follow the existing style ;) ).

Should also restore unintentionally changed modes.