clean up map.js.erb and state_requirement.rb