This was missing a var declaration.