replace content after scripts have been loaded