.locations was not updated due to nearbySearch(). Moved showLocations() to locationCtrl and used () for instant update.