Moving more stuff out of main sexymf.js program