code: function _attachListener(object, type, callback) {
    if (object.addEventListener) {
      object.addEventListener(type, callback, false);
    } else {
      object.attachEvent('on' + type, callback);
    }
  }
docs: cross browser add event method
  
  @param {Element|HTMLDocument} object
  @param {string} type
  @param {Function} callback
  @returns void