SERVER-9778: tempoary fix for Matcher2 loading a javascript scope in its constructor