simple JavaScript UI component for displaying messages