JS rule update