797b3ea
Declare all variables for stats JS Also use function declaration instead of assigning anonymous functions to variables. Such functions don't require a semicolon, so these can be removed. Semicolons are added after statements that were missing them.