code: function buildStyleAttribute(styleMap) {
    var styleAttribute = [];
    for (var property in styleMap) {
      styleAttribute.push(property + ': ' + styleMap[property] + ';');
    }
    return styleAttribute.join(' ');
  }
docs: Build a style attribute from a map of property names to property values.
  
  @param {Object<string, string} styleMap The keys are style attribute property
  names. The values are the corresponding property values.
  @return {string} The correct style attribute.