     return file
 
   read: (filepath) ->
-    file = new File filepath
+    file = File filepath
     file.open "r"
     content = file.read()
     file.close()
     return content
 
   filename: (filepath) ->
-    return filepath.substr filepath.lastIndexOf('/') + 1
+    filename = filepath.substr filepath.lastIndexOf('/') + 1
+    return filename
 
 class Esy.ui
 

      @log property

  log: (str) ->
    $.write "#{str?.toString()}\n"

  dump: (obj) ->
    if obj
      $.write "\n Dumping: \n --- \n"
      for propertyName, propertyValue of obj
        log "#{propertyName}: #{propertyValue?.toString()} \n"


class Esy.file

  delete: (filepath) ->
    file = File filepath
    file.remove()

  create: (filepath, content = "") ->
    file = new File filepath


    return reply.substr(reply.indexOf("\r\n\r\n") + 4)

esy = new Esy()
