-Moved port configuration to config.js
-added response middleware to set json content type