Add pure JavaScript implementation for flash alerts
Sort alert types order