post 'solution for javascript async callback chain'