[css-text] Improvements to justification script.