Add a feature to append the generated modal element anywhere in the document instead of automatically prepending to the document's body.