code: function() {
          var this_ = this;
  
          this.msg = (typeof this.options.select_message == 'string'?
                      document.getElementById(this.options.select_message):
                      this.options.select_message);
          this.close_button = this.get_close_button();
          this.msg_autoclose = null;
  
          addEvent(this.close_button, 'click', function(e){
              preventDefault(e);
              this_.hide_message();
              this_.save_message_closed();
              clearTimeout(this_.msg_autoclose);
          });
      }
docs: message.js