I think that can be addressed, that was because there was a global variable that was being used all around the place.

Here though I specifically meant the `updatePopupStatus` function, not the map.js file.