Update locations.js

fixed syntax error