feat(namedFunction): update regex to match named functions

Previously the regex matched `function (args)` when matching the function declaration
to retrieve the body. Now functions declared like `function namedFunction(args)` can
also be identified correctly.