script for text justification