note destroy working with JS