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

i.e. stop trying to merge ViM swap files during testing
Searches are slow; never do a search unless you have to.

This should be `if (file.substr(-3) === '.js')`