Update view_materials.js