add xhr to list of dependencies