added javascript to add remove sound details based on Material Type

Kavinga requested this change for manual copies, please review and merge