Added tests and changed the way files are internally looped
I have rules, so I should try to follow them
See one JSHint error less, one more 'var' less