added to left and right data states

js