How to use class functions inside handsontable