Removed an unneeded bit of js to close the materials modal.