Check out the "js/views/feedback" module, or it's subclasses "js/views/feedback_alert", "js/views/feedback_notification", and "js/views/feedback_prompt".