add FileAPI.js and add some functions on it.