Cleaned up main.js example code a little - no longer needs to contain the threshold. Fixed an issue in gamepadSupport when up and left stopped working due to me being stupid