refactored code. added namespace. removed parent property on overlay and added appendTo method. removed message property.
added namespace, removed parent property from overlay and added new method appendTo