yaml and json ajax working