default mode should be javascript