add rate counter warning color js