Add dynamic rule changes on js side