Fix view/index.js