adding document.cookie in updates.js to access user location in controller