update views.js