Update and rename alerts.js to views.js