edited curLoc.js