Added a "joystick" library; see the first lines of joystick.js for docs.