event data

* add event data description
* separate drawing code into draw.js