Flash messages from javascript