Update view.js

added prototype for goFirstSlice