     toElement: (option) ->
         options ?= {}
         body     = @renderBody()
-        element  = $element 'div', class: "status"
+        element  = $fromHTML '<div class="status"/>'
         context_link = @renderContext()
 
         $append(

        destination[key] = value for key, value of source

    destination

$element = (name, props) ->
    el = document.createElement name
    for key, value of props
        switch typeof value
            when 'string', 'number'
                switch key
                    when 'class'
                        el.setAttribute('class', '' + value)

                    else el[key] = value

            when 'object' then extend el[key], value

    return el

$append = (el, children...) ->
    for child in children

    el

$fromHTML = (html) ->
    parent = document.createElement "div"
    parent.innerHTML = html
    parent.childNodes[0]

jsonp = (obj) ->
