add node.js server file and reorganize current files based on that