added view.js