[JS] Update to clean up to chained promise model