Changed some stuff in map.js

Probably gonna not use this capture branch...