Checking To See If An Element Has A CSS Pseudo-Class In JavaScript