Improve `rake stats` for JavaScript and CoffeeScript.

Ignore block comments and calculates number of functions.