Use javascript to color-code recent errors