Fix for pass the jshint (view.js)