Java/JavaScript validation framework