Update server.js

Sent the user to main page if a commandpage is loaded directly.