Update list.js.erb

Updated Truncate method.