Fix browser hanging after returning to music tab

Don't render application when the tab is hidden. Using Page Visiblity API.