clean up ajax client side