js mode customizations