title: check for the last item in a javascript array
body: <p>I have this array which I iterate through by using $.each(...).
  But I need to do something to the very last item in the array.
  so I need to know in the loop that if it's the last item, then do something.
  thanks a lot ;)</p>