Refactor javascript on City show page.