update js rules