Ajax pattern, missing adaption to chosen api