       init:
         bodyColor: '#ff0000'
 byId = (id) -> document.getElementById(id)
+decamelize = (str) ->
+  str = str.replace /([a-z])([A-Z])/g, "$1 $2"
+  str.toLowerCase()
+text = (t) ->
+  document.createTextNode(t)
 create = (tag, cz) ->
   e = document.createElement(tag)
   e.setAttribute( 'class', cz ) if cz

  s = create 'input'
  s.type = 'color'
  s.value = color
  parent.appendChild s
  s.onchange = ->
    object[label] = s.value
makeCheckbox = (label, obj, parent) ->

  for k,v of obj
    div = create 'div', 'indenter'
    h = create 'div', 'param-header'
    h.innerHTML = decamelize k
    div.appendChild h
    parent.appendChild div
    if v instanceof Array
