[JS] Clean up callback to serial promise chain work