Converting browser message from modal type to alert type & message text rephrasing