Fixed jquery conflict error and fixed many bugs arising from a student not being on a team but his or her team_id not being nil.