Update view.js

can update add define path on function View.