aggregate cities logic into one JS.