From my experience, Garbage Collectors are well/poorly implemented depending on the browser. Applying good Object Oriented programming practices is a good start.
More details on DOM/JS memory leaks. http://msdn.microsoft.com/en-us/library/bb250448%28VS.85%29.aspx
I think by storing data on DOM nodes you can easily create circular references which not all browsers can deal with. For example:
this.element = document.getElementById('something'); this.element.attachedObject = this;
©2020 All rights reserved.