Clean up merger.js code form 10d
Rename expand to toggle