text.js: Refactor the _ function.