Added simple error handling to views.js