Server.js

Outlined functionality