Javascript for Event form autofill