Changes to the javascript functions

+ onload at the end
+ switch instead of if
+ more conditions: e.g. if no champ's selected for any role
+ for in loop variables are now local not global
+ some missing ;
+ playerLimit is now a individual variable
+ catch if some browser doesn't support localstorage. (They should do
for full functionality)
+ some for-in-loops are now for-loops
+ checkRoleSelection

- some unusual "var"s
- long notations for the same values