You can easily set the fill color of an svg by using it as a mask.
Toggle class name on click in jQuery
Change class name on click in jQuery
No-Library (pure JS), HTML, CSS, JavaScript
jQuery 1.8.3, HTML, CSS, JavaScript