Create building blocks of async JavaScript