Dev add debugging to ajax