add sugarjs for truncate