Fixed bug in xhr function (property name collision)