Add jsonp format option

I added the ability to return the svg as jsonp wrapped in callback function. I also fixed an errant } that was preventing the response from being closed.