Improve `rake stats` for JavaScript and CoffeeScript.

Ignore block comments and calculates number of functions.
Merge pull request #9072 from htanata/statistics

Improve `rake stats` for JavaScript and CoffeeScript