Client-side model and ajax library