function addAttributes(element, attributes) {
    attributes.forEach(function (attribute) {
      element.setAttribute(
        attribute.split(':')[0],
        attribute.split(':')[1] || ''
      )
    })
  }
Adds attributes to the given element
@function
@ignore
@param {HTMLElement} target
@param {Array} attributes
@example
addAttributes(element, [ 'data-info:foobar' ]);