bindEvents = (element, events) => {
  if (events) {
    for (const event in events) {
      if (events.hasOwnProperty(event)) {
        element.addEventListener(event, evt => events[event](evt))
      }
    }
  }
}
Bind events to an element
@param  {EventTarget} element DOM element
@param  {Object} events  object full of events eg. {click: evt => callback}
@return {void}