Using module pattern for ViewModels in example app

Demonstrate how to hide functions/props from the View.