consolidated 5 or 6 $ calls

Cached one reference and collapsed three separate calls to $().css into
one call with an object argument.
Merge pull request #657 from roblarsen/visualLength

consolidated 5 or 6 $ calls