Put opening `{` on expected line

Line 41 to the end of line 40
Define `fkt` variable once
Define `handleResize()` before it's used
Remove strict mode violations

Unclear usage of `this`