Can anyone point me in the right direction regarding how to update a progress element by querying the server for task status? My current approach is to use JavaScript to query the server for a JSON response and update the DOM in a loop until the task is done, but I don't have enough experience to make this all integrate, and I can't find any relevant examples.