Adding tests for all three browser joystick event formats, fixing a bug in SDL_JoystickGetButton.

There's currently a bug where the sdl_joystick test does not appropriately inform the emscripten test harness that the test has passed. I do not know why.

Thus, I have added a printf that proves that the tests all pass properly.