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

Goes with:

(cc @paglias(