function setStyles(element, styles) {
    for (var prop in styles) {
      element.style[prop] = styles[prop];
    }
  }
Set inline styles to an element.

@param {HTMLElement} element
@param {Object} styles