Declared "view"

Defined "view" object as " 'view' is undefined " exception getting
raised in browser console.