feat(params): update regex to match functions with parameters

Previously the regex only matched `function () {` as the beginning function declaration.
Now function declarations like `function (argument) {` are also detected.
Merge pull request #2 from ealtenho/feat-match-arguments

feat(params): update regex to match functions with parameters