A demo that programmatically justifies text in PHP and JS