Fork of balance-text without jQuery dependency