Move file-related JS to own directory.