Async While Loop Javascript Break Syntax