Added more methods to textJustifier.js