Put pagination classes on containing LI element

Fix for issue #8: class on containing LI element instead of the SPAN.