Add before_destroy callback, fix js for brands