js mode updates