change the way issue3596.js calls Css.hasClass