Move some code from Awake to main.js.