removed the closure on the xhr listener by using .bind on the method