     n.appendChild(el.firstChild) while el.hasChildNodes()
   el.parentNode.replaceChild n, el
   return n
-    
+
 _L.jx = (route, q, success, error, api, method, data, headers) ->
   # add auth options to this
   api ?= _L.api

  return if rs.length is 1 then (rs[0] ? '') else if rs.length then rs else ''
_L.append = (els, html) -> _L.html els, html, true
_L.remove = (els) -> _L.each els, (el) -> el.parentNode.removeChild el
_L.class = (el, cls) -> 
  rs = []
  classes = el.getAttribute 'class'
  classes ?= ''

  return res
_L.html = (els, html, append, show) ->
  rs = []
  _L.each els, (el) ->
    if typeof html is 'string'
      el.innerHTML = (if append then el.innerHTML else '') + html
    rs.push el.innerHTML
