rebuild js optimized