js: Report picks the right output at runtime