rewritten createCSSClassToggler in a more general way, now it can work with class lists as well...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>