jshint enabled via grunt for server.js; code adjusted to comply.