[W8 JS Test App] Split platform-specific code from default.html
- Moved the platform-specific code and script to leave
  default.html with markup only.