improve JavaScript compiler