Resolve lint flags

- Add missing semicolon
- Remove trailing whitespace
- Use `!==` to compare with `null`
- Remove unnecessary initialization with `undefined`
- Remove unnecessary semicolon
i prefer second one if linter allows, but third(i don't matter explicitness)