[Pending review] Mechanism to use Rails translations in JavaScript