update js pattern