Nits: please use consistent whitespace on function calls and declarations in this file:  `fn(param)`, and `function foo(arg1, arg2)`