Memory Leak Simulation

for a JavaScript Web App