Fix regex.

Fix regex to match function name that contains number, _, or $.
Fix regex to match function expression.(e.g. match to 'var foo = function() {}')