title: arrow clicks in jquery
body: <p>I have 2 arrows one increments a counter by 1 and the left one decreases it the problem I am trying to solve is good logic to deal with negative number (it should go to the last item in the list) and at the other end when the counter is over the max number of items it should return to 0.</p>
  
  <p>Am looking for some nice logic to achieve this.</p>