console.log might have been a memory leak