JavaScript async execution: language plugin recognizes deferred and
promises returned and waits accordingly for their termination.