Update geolocationController.js

Be careful with putting functions in variable or parameter