Replace hard-coded strings for window.env.t on js files

Goes with: [habitrpg #2762](https://github.com/HabitRPG/habitrpg/pull/2762)

(@cc paglias)