functionified making html element for colored names