added feature: pass moduleName through the constructor

fixed: don't render HTML files list if EnableOptimization is set to false