Removed css as it is not needed
Changed the module to used drupal core UTF8 truncate function and optimized the array loops