Fix issue with jQuery 1-indexed nth-child funciton