code: function generateElement(type, attributes, html) {
          var el = document.createElement(type);
          Object.keys(attributes || {}).forEach(function (type) {
            el.setAttribute(type, attributes[type]);
          });
          if (html) {
            el.innerHTML = html;
          }
          return el;
        }
docs: @function generateElement
  Generates DOM element
  
  @param {string} source
  @param {object} attributes
  @param {string} html
  @returns HTMLElement