Fixed cleanup code and added optional CSS for :active

I think this is good enough for a basic example.