adding object passing to joy, updating joy test, updating demo, passing callbacks in the object should be ok now