     @ancestorNode.innerHTML = parser.toHTML Chattifier.headerStartLevel
 
     # postprocess HTML
-    @groupInDivs()
+    @groupIntoDivs()
     @colorEncode()
 
     return true


class Chattifier
  @headerStartLevel = 4

  constructor: ->
    @ancestorNode = null

      parent.removeChild bq
      blockquotes = @ancestorNode.getElementsByTagName "blockquote"

  # groups the elements into divs such that each div contains
  # one heading element only such that:
  # <div>
  #   <h4>On...wrote:</h4>
  #   <p>...</p>
  # </div>
  # <div>
  #   <h4>On...wrote:</h4>
  #   ...
  groupIntoDivs: ->
    headerTag = "h" + Chattifier.headerStartLevel
    divs = [document.createElement "div"]
    count = 0
