Remove duplicate declarations in CSS and JS