Ajax reader working