Json can't include javascript function ... and we need to pass some data within because of callbacks.

The other way around would have been to put callbacks outside the datastructure, but I fount it more straightforward to put the callbacks here.