add methods in File.js