Replaced fringeView by "view", and split code into view.js and update.js