update js/java mode