IssueID #62: transferred the file functionality to file.js