Added destroy method and jquery