creating a simple server by refactoring the helloworld.js