better js initialization to allow multiple maps to be rendered on the same page