Your code looks ok, though I believe the fastest way to do this is using regular expressions and string.replace() like this:

```js
utils.hyphensToCamelCase = function(string) {
  return string.replace(/-([a-z])/g, function(matched, letter) {
      return letter.toUpperCase();
  });
};
```