Maybe add a comment explaining why we're generating a function (because of SocialAPI's `importScripts` limitation)