Microsoft is really trying to entice the web developers to jump in and develop apps on Windows 8 devices. They allow apps to be written fully in HTML5 and JavaScript, and they have even included a JavaScript API that provides a bridge directly to the Windows Runtime (WinRT). Think PhoneGap for Windows 8.
You will need to install the Windows 8 Developer Preview on an physical machine, or you can install it on a virtual machine by following the instructions I provide in a previous post. The install includes “Visual Studio 11 Express for Windows Developer Preview.” How’s that for a mouthful? The start screen looks pretty familiar:

I do remember in one of the sessions at BUILD the emphasis on the simplification of the menu bar. Looks nice. Once you click “New Project…” you will see the template selection. We will be creating a blank application for our purposes, but there are several other templates.

I found the dozens of sample applications particularly useful in learning the new WinRT API. Click the “Online” section for access to those. You can also browse them online.
Below you can see that I expanded out the project hierarchy, with the addition of the jQuery file. Upon inspection, I found it to be a true web application. There are several additional JavaScript files that provide the WinRT JavaScript API and the Windows 8 application framework. Other than that stuff, the core files to the app are default.html, default.css, and default.js.

In default.html, I added a script reference to jQuery, a button, and a div.

In default.js, I added a little code to confirm that jQuery indeed works in a Windows 8 app. The existing code from the template I did not modify. What’s happening in there is essentially an event handler for the app’s launch event. Since we are technically building a Windows 8 app and not a web site, the idea of a “launch” event makes sense.

Hitting F5 launches the app in debug mode. Apps run full screen, so the button and div show up at the top left. The default.css provides the Metro look and feel for free. Below is a screenshot after clicking the button, which runs the jQuery-dependent button click handler.

External libraries in Windows 8 applications! What excites me most about this is we can continue to leverage all the web innovation that is occurring outside of Microsoft, not just the framework that Microsoft provides. And there is a lot of it going on. Check out MicroJS.com to see a sampling.
If you are interested in downloading the source code, it is available in a github repository. Don’t worry if you aren’t familiar with github; you can download the code in a zip file.