Fix for cross-browser compatibility
Merge pull request #22 from UncleDec/master

Joystick fix for cross-browser compatibility