Using snap to control SVG elements