refactor map.js code
Refactor gps code out into it's own object