some js changes

having some issues with the map