Fix JS mode