var vmModule = require("./main-view-model");
var platformModule = require("platform");
var bannerModule = require("./bannerview");

function pageLoaded(args) {
    var page = args.object;
    page.bindingContext = vmModule.mainViewModel;

    var placeholder = page.getViewById("bannerView");
    bannerModule.loadBanner(placeholder);
}

function creatingView(args) {
    args.view = bannerModule.createBanner(args);
}

exports.pageLoaded = pageLoaded;
exports.creatingView = creatingView;
@@ -42,50 +42,8 @@
 %22);%0A
-var platformModule = require(%22platform%22);%0A
 var 
@@ -440,8 +440,9 @@
 ingView;
+%0A

Update main-page.js