Still not sure this is taking into account possible race conditions with related pages.  See https://github.com/Wikia/app/blob/dev/extensions/wikia/RelatedPages/js/RelatedPages.js#L113 where the related pages module is prepended to the #WikiaArticleFooter div. If the videos module prepends before the related pages module, you'll get the related pages module showing up first.