function toCamelCase (str) {
  return str.replace(/-([a-z])/g, camelCase);
  function camelCase (g) { return g[1].toUpperCase(); }
}
Converts string from hyphen to camelCase.

@param {string} str - String to camelCase.
@return {string} CamelCased string.