The undocumented ajax API explained