Restore flash-messages class around native alerts