Trying to understand how to get Pause buttons to turn off

#Hi Matt - 

on album.js, line 146-162, I am having trouble understanding how to loop through the elements and turn any node with glyphicon-pause off, except for the elements being clicked. I've spend a couple horus on it, and figure it's better now to ask you than keep going not getting it. 

Thanks for your help. 
J