Updated view.js