Why can't this be changed below where `$phantomTemplate` is defined?