minor fix for vote.js.erb files to do conditional in ruby