This looks wrong (i.e., I would expect it to live in its own file called i18n.js), but I don't know a cleaner way to pass a ruby variable into javascript.