CSS and JS line refactoring