used html to reset the js-messages content instead of hide