Added checking JS files. Refactored "redundantCode" validator.