locality.js