Node.js practice to make a library to handle static content