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.
Thanks, you are right, === would be better ;)