Ellipsis in css

Use CSS to truncate and show an ellipsis. Fix goofiness in JS.