node fs and timeout