Added javascript validators