Initialise formula in the javascript code. Bring documentation up to date.