Improve JS performance.