Styling Chat Transcript with custom function