Started to modulize parts of the geo.js logic into smaller functions and using them in app.js