got callbacks to js working, not getting proper event data in c++ though