code: function addEvent(target, name, callback, capture) {
        if (target.addEventListener) {
          target.addEventListener(name, callback, capture || false);
        } else if (target.attachEvent) {
          target.attachEvent('on' + name, callback);
        }
      }
docs: Binds a native event to a callback on the speified target.