integrated map js generator into home and routes pages, various fixes on url management for local/remote