Shift TargetOptions into a global JS var