JS with callback to CPP