Follow coding conventions concerning semicolons; Don't initialize variab...

...les explicitly as "undefined"

This commit doesn't break anything. I added a bunch of semicolons in order to be more consistent regarding the style guide. Basically, JSHint passes now (except for one function being initialized inside a for-loop).