Use correct baseUrl when using a reverse proxy consisting of subdirectories

Fixes #250.
(Also note for future reference that constructors must always be referenced with an uppercase first letter.)