Async While Loop Javascript Break String