added server.js and init a few variable besides app