fix to require optimized js