Include JavaScript files as 'code' files.

When counting code files, JavaScript (*.js) files are not included, yet other web-types such as CSS and HTML are.
Merge pull request #2347 from simbolo/patch-1

Include JavaScript files as 'code' files.