Add $.fn.messages('close') function & store messages in data attributes