Update view.js

maybe this will fix the travis ci errors? :-/