This function will return a promise which will append a new element into another element