They create a class, then they wrap the class in a class.
A class in javascript is just a variable, after all.
I think, personally, I'd've called the initial class ScoreGuts or something, or gone with a different syntax that returned the class as a value, but ... eh. It's really not that big a deal.