Tidy up code for adding a map to the changeset list page