Change to automatically loading the window.location.hostname's api-docs info, instead of the demo petstore.
Remove the while(1) from the incoming JSON so Swagger can JSON.parse it.