[javascript] Is JavaScript guaranteed to be single-threaded?