handling file system errors in node

tabifying SPA