dhtmlxGrid from version 1.1 automatically clears used memory on unload method to prevent memory leaks. In case of "never-reloading" type of app you can clear memory manually.