created server.js, modified parser.js for better data structure generation