JavaScript Demo: Atomics.exchange()