Add require tree for js assets. Create mainIndexCtrl.js.