Allow arbitrary params in SVG objects

Dear Dan,

You might remember my offer to add the possibility of allowing arbitrary parameters in SVG objects to improve the interactivity with JS. Please consider this pull request. I hope it meets your standards; feel free to ignore it if it doesn't.

Best

Miguel