clean up js
locating now works