add GameLoopHtml.onVisibilityChange to be similar as Fullscreen