javascript: show only a part of a long string (ellipsis)

Anatoly Mironov