Shared variables between Javascript and CSS