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.