changing CSS selector names to match JavaScript