I've added gamepad/joystick support to all Flash and HTML5 games. The Gamepad API is currently only supported on Chrome (and Firefox nightly, I heard). So to use it, you need to use Chrome.
Also, the buttons are only tested for my Xbox 360 controller (on Mac), so not sure what will happen with different controllers and platforms. Feedback would be nice.