added nodejs server and reused code to serve files