A small python sketch of the calculations and the first version of a javascript library.