Removed old parent ref from main.js. Fixed === null check. Spaced out the logging.