Joystick fix for cross-browser compatibility