Function updated to jquery plugin
Function updated to jquery plugin

Next step is to seperate the document.ready part from the truncate function part.
JeffreyArts/jQuery-Truncate,JeffreyArts/jQuery-Truncate