add support for `var foo = function() {}` type functions