Fix server.coffee and delete server.js

Fixed the errors in server.coffee. Got rid of server.js now that
coffeescript equivalent functions.