dividing the app.js  into manageable code in differenrent files, namely win.js