[#43960107] setFromJson partially implemented. Serious JS Prototype OOP issues

Since methods are implemented as prototypes, the methods of
CumulativePosition get called from methods of RankedPosition.
RankedPosition should only call its own instance's method. But I hate
JS OOP.