Add class to calculate code statistics of file.
Improve `rake stats` for JavaScript and CoffeeScript.

Ignore block comments and calculates number of functions.