re-struct ajax