Add JavaScript for validation.
Fix JavaScript execution.