Can you move both position and velocity `var` declaration to the top of the function scope, around line 44 (in alphabetical order, please)? The reason is because JavaScript's variable declarations are 'hoisted' to the top of its function scope anyways, so declaring them at the top avoids potential unforeseen problems, and it also makes it clear to everyone what variables are available in this particular function.