reorganized files to accommodate a node.js friendly structure