fix nth-child implementation

The previous nth-child('an+b') implementation could only have a and b values that were single digit (eg
 5n-7).  Patterns like 13n+14 were not supported, and were interpreted as nth-child('13').
Merge pull request #1 from lsowen/master

fix nth-child implementation (thanks Isowen)