Fixed some bugs related to the cherry pick of the deletion of the jquery-truncate plugin.