added the if statement to test for paused video, added console.log for debugging