Fixed bug cropping display string without ellipsing it.
Added JS-file.