managing city selection with JS