Was missing a var declaration.