soundChanged method for js