Added node.js server and improved majavamain.js