 
         jsCode += (requiresStr + code + '\n')
 
-    # console.log jsCode
-
-    # return callback($.html()) if !jsCode
-    return $.html() if !jsCode
     return $.html() + "#{scriptsStr}\n<script data-js-code>#{jsCode}</script>"
 
   ##

  ## {Function} callback (htmlContent)
  insertCodeChunksResult: (htmlContent)->
    # insert outputDiv and outputElement accordingly
    $ = cheerio.load(htmlContent)
    codeChunks = $('.code-chunk')
    jsCode = ''
    requireCache = {} # key is path
    scriptsStr = ""
    stylesStr = ""

    # codeChunksArr = []
    for codeChunk in codeChunks
      $codeChunk = $(codeChunk)
      dataArgs = $codeChunk.attr('data-args').unescape()


          ss = $('.output-div > script', $codeChunk)
          if ss
            for s in ss
              $s = $(s)
              c = $s.html()
