fixed destroy method for modern jquery