Those are the lines of code that I tried, as well.
Look at the side of the screen, where the cursor repeats, that's what I mean.
As for export to metro, the main difference between a regular SGDK2 HTML5 application and a Win 8 HTML5 application from what I see seem to be an additional external css file and references to WinRT JS in the HTML header, as well as an Xaml file with a unique application ID and other application properties, more resembling Android's application config XML file than DotNet's app.config .
I believe Game Maker and Construct's Export buttons export a project directly to consideration by Microsoft in an html5 windows store format, prompting you for a developer license ID, but this is unnecessary, because they both assume that you've debugged the games under PC before exporting. SGDK2 could just export it for debugging on the user's system as a Windows app without submitting.
If the user was running SGDK2 in Win8, it could be done, the only part I don't get is how you would tell SGDK2 to deploy it- or where the user would search for it to deploy it themselves. I can't seem to find a single Metro app in the filesystem, and the are usually installed for me when I press F5 in Blend or Visual Studio 11.. I'm not sure if SGDK2 would be able to allow you to build for Windows Store/Metro seeing as I had to obtain a developer license from them just to run my own games (Only licensed developers can run Metro applications that aren't pre approved by Microsoft, thanks to their new security model - whatever this means..)
It would probably take a large amount of hacking and Microsoft could file a cease and desist, so thinking about it now, it doesn't seem as good of an idea as it seemed yesterday..
Of course it could just be integrated, if a person already has VS 11 or Blend, SGDK2 could just generate an html file with appropriate html header in the same directory with a Windows Store project overwriting the default html file generated for a windows store html app, there would be no conflicts there.
I like that option, actually.