put all MagicMirror-specific code in a singleton