SharedArrayBuffer sample code