ajax formatting bug