Moved include and replaceCustomElements to separate functions
Using success property returned by render function to pass along the callback when includes and replacements are done
Decided to always use the success to ensure the async operations are completed