JS mode updated