define([], function() {
    return {
        hyphenate: function(string) {
            return string.replace(/([a-z])([A-Z])/, '$1-$2').toLowerCase();
        }
    }
});
@@ -118,16 +118,17 @@
 (%5BA-Z%5D)/
+g
 , '$1-$2
@@ -130,16 +130,34 @@
 $1-$2').
+replace(' ', '-').
 toLowerC
@@ -178,12 +178,13 @@
  %7D%0A    %7D
+;
 %0A%7D);

String util: improved hyphenate function