Only merge files ending in .js from ./chat-plugins/

i.e. stop trying to merge ViM swap files during testing
Yes. If the string isn't at index 0, `.indexOf` will search the rest of the string; `.substr` won't.

The important part, like I said, is not to code an algorithm slower than the one your brain uses. :|