trying to make xhr work