Put opening `{` on correct line
Only define fkt variable with `var` once
Use `forEach()` instead of for-loops

Let’s us get rid of `continue` statements
Define `handleResize()` before it's used