Fixed the memory leak

Hi @huei90 

After almost a complete days work and learning a freaking lot about memory profiling and javascript memory leak pattern, I managed to fix the issue.

The solution is actually quite simple:
_Event handlers that contain a reference to the object should not be directly attached to a dom-object. Using **addEventListener** resolves the problem nicely_