Updated Jquery to remove last element