Replaced vote_up.js.erb and vote_down.js.erb with shared template vote.js.erb