a javascript system for dispatching and dismissing user messages in custom-defined displays