function createElement({tagName = 'div', className = '', innerHtml = '', id = '', attrs = {}} = {}) {
    let $element = document.createElement(tagName);
    if (className) $element.classList.add(...className.split(' '));
    if (id) $element.id = id;

    if (innerHtml) {
        $element.innerHTML = innerHtml;
    }

    if (attrs) {
        setAttribute($element, attrs);
    }

    return $element;
}
Creates HTML DOM element
@param {String} [tagName] - element's tag name
@param {String} [className]
@param {String} [innerHtml]
@param {String} [id]
@param {Object} [attrs]
@returns {HTMLElement}