Create instance of xhr