Okay so before I even got to the actual experiment I was impressed that the music on the page only plays while you are currently viewing the page, so if you are on another tab the music stops! I want to know how to just do that!
I haven't looked at the source code but according to https://developer.mozilla.org/en-US/docs/DOM/Using_the_Page_..., you can simply register a onblur / onfocus event handler on the window object (this doesn't use the recent Page Visibility API, it's been possible for a long time)