the reason why this was out of context is because if the callback for navigator.geolocation.getCurrentPosition I am sure I can use $.proxy or something similar to fix this but I am running in a bit and I can't do that.