extended the creation to allow custom node appending

added a parameter to specify an element ID to which the overlay can be appended. If omitted, the overlay appending will default to the body.