Added mocha and chai for testing. imported spatial calculations to util.js from locator.js.