themeswitcher js fixes