My attempt at an HTML5 Gamepad Library