How can I use Javascript in a PDF to validate form inputs and show alerts