add .js format to destroy