Fix memory leaks in 'jsdebug' GUI code (hopefully all). Try to plug some more valgrind warnings.