Update locations.js

fixed map and test