Supported messages to be shown in browser
Refactored code with jQuery