process side-effects immediately when there are no queued side-effects left
build js