Optimised production.js