add missing semi-colons, add radix parameter for parseInt, rm var declar...

...ation for variables within a function that are already defined because they are parameters, etc.