First pass at upgrading views for RequireJS.