Priority Queue Remove Method Jquery