file type for the browser and node.js