Brendan Eich tells how to prevent JavaScript memory leaks