menu_map moved to its own module
tidy up
replace function declarations with expressions
fixed url bug when page not loaded on index
hopefully have fixed most glitches now