Updated xhr example