rudimentary support for js theme switching