Used express module for setting the server
Corrected syntax errors