How to call the afterchange from already existing table

This demo uses circular references and you get Maximum call stack size exceeded. If you would like to learn how to create cell dependencies I highly encourage to read this article https://handsontable.com/blog/articles/expand-your-app-with-cell-dependencies.
It also provides lives demos so you can test the implementation.