There are multiple libraries on SVG graphics using Javascript like: Snap, Raphael, D3. Or you can directly interface the SVG with plain javascript.
Currently all latest versions of the browsers support SVG v1.1. SVG v2.0 is in Working Draft and too early to use it.
This article shows how to interact with SVG using Javascript and has reference to links for browser support. Interfacing with SVG