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.
Merge pull request #3 from ealtenho/feat-named-functions

feat(namedFunction): update regex to match named functions