Refactoring. Changing js-module check.