pause/play music using page visibility api