Converted page to AngularJS. added controllers.js and attendance.js