'Friends' creator reveals Phoebe almost had a totally different ending to the show