adding js directory and validation script