Fix major JavaScript memory leak. run-plt says cvs-base improved