if( tieSkin == 'dark' ){ html.add('dark-skin'); } else if( tieSkin == 'light' ){ html.remove( 'dark-skin' ); } } catch(e) { console.log( e ) }