correctly ignores dirs when finding js/coffee files