ajax framework for rest application