Sample JavaScript Validation