Setup js mode.