code: function (stylesObj) {
              var styles = '';
              Object.keys(stylesObj).forEach(function (prop) {
                  styles += prop + ':' + stylesObj[prop].replace(/"/g, '\\"') + '; ';
              });
              return styles;
          }
docs: Convert style object (with key as the property and value as the css value) to semi-colon separated CSS declaration string.