Refactoring jquery alertsMessagges OK