working on the new locations javascript. done for today