Moving startup logic out of main social.js