commented indexView.js