create network.js
refactor server.js
single var statement all complete.