Create and play with SVG images using JavaScript