compartementalize the base map options JS and html