Fixed the situation where table header had other li elements in the table

Hello,

Thank you for your fantastic plugin. It helped us greatly. We just found a situation where we had 'li' in one of our table headers, which was interfering in the startIndex and endIndex calculations. We changed the code to look for li that are direct descendants only.

Thanks
Vidya Mani