Examples of using different HTML5 API's with JavaScript