Add example of HTML5 API: Online and offline events