Update view.js