Only test .js files in test/dialects

This pull request limits the files which are automatically required from the `test/dialect` directory to filenames which have a `.js` extension.

My primary motivation is to avoid calling `require` on Vim's swap files, which causes the tests to fail whenever Vim has a file open in the `test/dialect` directory.  Any alternative implementations which accomplish that goal would be fine with me.

Thanks!