added more js-functionality, added controller for attendance