view.js: fix