include dom events, handle missing event arrays
Merge pull request #2 from jtuulos/master

include dom events in jsapi model