Factor out looping over an array that grants that function generating promises are called in the right order to a function sequntialEach. Used the function in renderTokens and arrayRenderToken.