Fix main.js not setting proper server address onDocumentReady. Fix authorization.js: redirect to map.html.