sortRequires tweaks

Don't log an expected syntax error if the file imports no modules.
Exclude js files that should be ignored.