Update src/locate.js