cleaned up some unused code in mmt.js, morphoviewer.js, and mgl.js