Support gamepad.js

Support Gamepad API.
Works only under Mozilla Firefox.