cleaning up the JS maps