Added javascript to team.php view for button funtionality