function addEventListener(el, type, listener) {
    if (el.length) {
        el.forEach((e) => {
            e.addEventListener(type, listener);
        });
    } else {
        el.addEventListener(type, listener);
    }
}
Adds event listener to DOM element
@param {HTMLElement|HTMLCollection} el
@param {String} type
@param {Function} listener