Made main.js example easier to understand