fixes issue when media is served from non-standard port, closes https://github.com/enketo/enketo-express/issues/3