JavaScript bundle optimization