Deferred JS loading in production environment