Form validation / Lightbox: Changed undefined approach and moved event handlers to the JEP model.

Also switched leading spaces to tabs.