Fix main.js calling methods

During working with roots-child I noticed that I can't see any code working within main.js.