update example.html to include demo for nested list

also separate styles classes & js functionality, this makes it more easy to add new items without having to deal with styling issues.
:+1: