After Robin Rendle at CSS-Tricks.

As soon I figured out, that JavaScript events have to be activated first, it was easy to bring the math part to work. On Vanilla JavaScript.