migrated all JS calls to modify CSS to the CSS itself