JSCS: reduce temporary hack scope, optimize excludeFiles