Bugfix/js memory leak hunting