cleaning up ajax