simple ftp implement in javascript