Utilized local var to prevent double search

`$navigation.find '[data-role="prev"]'` was being run twice.

Once saved to the local variables `$prev` and `$next`, and again to actually use the elements because the local variables were never used.  This change makes use of them and removes the duplicate search.