use classList to toggle css classes if it exists

Default css binding does not work for svg, the problem is attribute className, so these changes must fix the issue.
Prefer `===` :)