Add a gamepad support with closure.

Gamepads were not detected.

```navigator.webkitGetGamepads``` exists into my browser console but returned "undefined" in the script due to closure optimization. (line 828 of library_sdl.js)