make them dynamic. So I'm creating a globally scoped JavaScript array called rails_i18n which holds some of these messages. It's loaded in <head> before any of the JavaScript files so it should always be available.