restructuring meteor app