Add a prototype for setting up callbacks on a method from a class object