:eq() selector expects a zero-based index

fixes getPanel not finding the last or first panel
Merge pull request #51 from brumm/patch-1

:eq() selector expects a zero-based index