Modified Javascript so player is hidden until there's something to play