support setting of style as string

Sometimes it's nice to be able to just go `{style: 'style-string: style'}` - this PR adds support for it.

I'm using style.cssText as this is the most supported method across browsers.