Refactor anon hours server/server.js interaction