stop trying to require non-js/hidden files

editors like VIM place hidden files for recovery/etc in certain cases. This changes the logic for model loading to only require `.js` files, to avoid that case.

also thought about only requiring non-hidden files (`!match(/^\./)`), but thought this was more correct.