Fixed javascript bug "Uncaught ReferenceError: SwaggerApi is not defined"