Rails 4 reload fixes

This fixes the problem with translation.js not being correctly reloaded in rails 4 (and probably >= 3.1)

Fixes #156

I haven't tested it in anything else than rails 4.