user location updating every 5 seconds in location.js