js mode settings