Node.js: VFS -- implemented preview function