Creation of view.js amongst other things