Edit js mode