write w/o polling added
Calling js-callback inside of libgt2d