Update view_generator.js