Rails Il18n and elegant message passing to Javascript