Update server.js

Done some small cleanups on the server.js.. Added some notes to self