file utils for node.js