Only run test case files ending in .js.

Also, do not count excluded directories or files in the test file count.

This change is mostly to avoid the annoyance of editor backup/swap files (*~,
*.swp) getting pulled in and run as tests when you are in the midst of editing
test files.