options.target set to options.relativeTo

options.target has to be set so relative urls are resolved correctly.