Minor jQuery tuning

Reduce scope of DOM traveral to find $prev by filtering result of
$trigger.  Optimistically cache and reuse result of DOM traversal to
locate visibleClass.
Merge pull request #126 from bazineta/master

Minor jQuery DOM traversal tuning