Remove reliance on `last-child`

Fixes this for IE8.