Fix for https://github.com/wordnik/swagger-ui/issues/263

Current behavior is broken and treats all relative URLs as root-relative (as if they started with a "/") even when they were current path relative (not starting with a "/").

This patch fixes handling of non-root-relative URLs.