Event form set up.

Also split up the JS files a bit.