Updating JS Rules