add slim and js mode