 
     json.index ||= do ->
       filenames = _.keys(json.files)
-
+      
       if "index.html" in filenames then "index.html"
       else
         html = _.filter filenames, (filename) -> /.html?$/.test(filename)

      for filename, file of json.files
        former = old_files[filename]

        console.log ""
        console.log "Handling", filename, file
        console.log ""
        
        # Normalize file structure to hash
        if _.isString(file) then file =
          filename: filename

      field: "files"
    
    else
      plunk.index = do ->
        filenames = _.pluck(plunk.files, "filename")
        
        if "index.html" in filenames then "index.html"
        else
          html = _.filter filenames, (filename) -> /.html?$/.test(filename)
