... 57Summary 58Chapter 4: Layouts and Tiles ■ 59Dealing with Metro Layouts 59Snapping and Filling with CSS 60Snapping and Filling with JavaScript 61Using Tiles and Badges 62Improving Static ... HTML, JavaScript, and CSS into a Metro app together.Create an HTML document and use script and link elements to reference the JavaScript and CSS files. Use the WinJS.UI.Pages.define and WinJS.UI.Pages.render ... apps that are easy to extend, easy to test, and easy to maintain. Along the way, I’ll show you how to define Metro JavaScript namespaces, create observable arrays, use JavaScript promises, and...