Javascript Prevent Concurrent Execution, So you needn't worry about locking in this case.