Add some JS validation