Update view.js

I'm guessing you were tired.