Optimizes JavaScript code