Fixes issues #222 and #199

Swagger uis now correctly render in their container when there is more than one instance on the page.