Revert "removed url puzzling in constructor and uncommented script on page"

This reverts commit edd9eebe825f9f33a74fce702ea34552ddb7c92a.
Revert "changed url base in swagger constructor"

This reverts commit e01555607287657659ff757a4118a2418fe9a4fd.