Update TOC template

Move anchor to the top of the list
- add $FirstLast class to the list items