parse error at 5:9: global var "foo" can't also be a function