Replace var `window` with `root` in test.js.
Cleanup `_.template` docs. [ci skip]