function hyphenateStyleName(name) {
    return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  }
Hyphenates a camelcased CSS property name, for example:

  > hyphenateStyleName('backgroundColor')
  < "background-color"
  > hyphenateStyleName('MozTransition')
  < "-moz-transition"
  > hyphenateStyleName('msTransition')
  < "-ms-transition"

As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
is converted to `-ms-`.