Update joystick.js

Add comments