Add JS validation