merge from https://github.com/wordnik/swagger-ui/pull/639