events xml javascript

Still nowhere near done