Extend treelist.js with search function and saving collapse/expand states in localStorage